write Java Program to check number is prime or not